.class public abstract Les/nf;
.super Ljava/lang/Object;
.source "GroupFilter.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/nf$b;
    }
.end annotation


# instance fields
.field private final a:Ljava/util/concurrent/atomic/AtomicInteger;

.field private final b:Ljava/util/concurrent/atomic/AtomicLong;

.field private final c:Ljava/util/concurrent/ConcurrentLinkedQueue;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/ConcurrentLinkedQueue<",
            "Les/hg;",
            ">;"
        }
    .end annotation
.end field

.field private final d:Les/nf$b;


# direct methods
.method public constructor <init>()V
    .locals 3

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-direct {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;-><init>()V

    iput-object v0, p0, Les/nf;->c:Ljava/util/concurrent/ConcurrentLinkedQueue;

    .line 3
    new-instance v0, Ljava/util/concurrent/atomic/AtomicInteger;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V

    iput-object v0, p0, Les/nf;->a:Ljava/util/concurrent/atomic/AtomicInteger;

    .line 4
    new-instance v0, Ljava/util/concurrent/atomic/AtomicLong;

    const-wide/16 v1, 0x0

    invoke-direct {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicLong;-><init>(J)V

    iput-object v0, p0, Les/nf;->b:Ljava/util/concurrent/atomic/AtomicLong;

    .line 5
    new-instance v0, Les/nf$b;

    invoke-direct {v0}, Les/nf$b;-><init>()V

    iput-object v0, p0, Les/nf;->d:Les/nf$b;

    .line 6
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iput-object v1, v0, Les/nf$b;->a:Ljava/util/List;

    return-void
.end method


# virtual methods
.method public a(I)Les/nf$b;
    .locals 7

    if-gtz p1, :cond_0

    .line 9
    new-instance p1, Les/nf$b;

    invoke-direct {p1}, Les/nf$b;-><init>()V

    return-object p1

    .line 10
    :cond_0
    iget-object p1, p0, Les/nf;->d:Les/nf$b;

    iget-object p1, p1, Les/nf$b;->a:Ljava/util/List;

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    if-nez p1, :cond_1

    .line 11
    new-instance p1, Les/nf$b;

    invoke-direct {p1}, Les/nf$b;-><init>()V

    return-object p1

    :cond_1
    const/4 v0, 0x2

    const/4 v1, 0x1

    if-ne p1, v1, :cond_2

    const/4 v2, 0x1

    goto :goto_0

    :cond_2
    const/4 v2, 0x2

    .line 12
    :goto_0
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3, v2}, Ljava/util/ArrayList;-><init>(I)V

    const/4 v4, 0x0

    if-le v2, v1, :cond_7

    .line 13
    invoke-virtual {p0}, Les/nf;->b()Ljava/util/Comparator;

    move-result-object v2

    .line 14
    iget-object v5, p0, Les/nf;->d:Les/nf$b;

    iget-object v5, v5, Les/nf$b;->a:Ljava/util/List;

    invoke-interface {v5, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Les/hg;

    .line 15
    iget-object v5, p0, Les/nf;->d:Les/nf$b;

    iget-object v5, v5, Les/nf$b;->a:Ljava/util/List;

    invoke-interface {v5, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/hg;

    .line 16
    invoke-interface {v2, v1, v4}, Ljava/util/Comparator;->compare(Ljava/lang/Object;Ljava/lang/Object;)I

    move-result v5

    if-gez v5, :cond_3

    move-object v6, v4

    move-object v4, v1

    move-object v1, v6

    :cond_3
    :goto_1
    if-ge v0, p1, :cond_6

    .line 17
    iget-object v5, p0, Les/nf;->d:Les/nf$b;

    iget-object v5, v5, Les/nf$b;->a:Ljava/util/List;

    invoke-interface {v5, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    invoke-interface {v2, v5, v4}, Ljava/util/Comparator;->compare(Ljava/lang/Object;Ljava/lang/Object;)I

    move-result v5

    if-gez v5, :cond_4

    .line 18
    iget-object v1, p0, Les/nf;->d:Les/nf$b;

    iget-object v1, v1, Les/nf$b;->a:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/hg;

    move-object v6, v4

    move-object v4, v1

    move-object v1, v6

    goto :goto_2

    .line 19
    :cond_4
    iget-object v5, p0, Les/nf;->d:Les/nf$b;

    iget-object v5, v5, Les/nf$b;->a:Ljava/util/List;

    invoke-interface {v5, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    invoke-interface {v2, v5, v1}, Ljava/util/Comparator;->compare(Ljava/lang/Object;Ljava/lang/Object;)I

    move-result v5

    if-gez v5, :cond_5

    .line 20
    iget-object v1, p0, Les/nf;->d:Les/nf$b;

    iget-object v1, v1, Les/nf$b;->a:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/hg;

    :cond_5
    :goto_2
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    .line 21
    :cond_6
    invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 22
    invoke-interface {v3, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_3

    .line 23
    :cond_7
    iget-object p1, p0, Les/nf;->d:Les/nf$b;

    iget-object p1, p1, Les/nf$b;->a:Ljava/util/List;

    invoke-interface {p1, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    invoke-interface {v3, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 24
    :goto_3
    new-instance p1, Les/nf$b;

    iget-object v0, p0, Les/nf;->a:Ljava/util/concurrent/atomic/AtomicInteger;

    invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I

    move-result v0

    iget-object v1, p0, Les/nf;->b:Ljava/util/concurrent/atomic/AtomicLong;

    invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicLong;->get()J

    move-result-wide v1

    invoke-direct {p1, v3, v0, v1, v2}, Les/nf$b;-><init>(Ljava/util/List;IJ)V

    return-object p1
.end method

.method public a()V
    .locals 3

    .line 1
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    const-string v1, "finish!"

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 2
    monitor-enter p0

    .line 3
    :try_start_0
    iget-object v0, p0, Les/nf;->d:Les/nf$b;

    new-instance v1, Ljava/util/ArrayList;

    iget-object v2, p0, Les/nf;->c:Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    iput-object v1, v0, Les/nf$b;->a:Ljava/util/List;

    .line 4
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0
.end method

.method public abstract a(Les/we;)V
.end method

.method public a(Ljava/util/List;)Z
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/hg;",
            ">;)Z"
        }
    .end annotation

    .line 5
    monitor-enter p0

    .line 6
    :try_start_0
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Les/hg;

    .line 7
    iget-object v1, p0, Les/nf;->d:Les/nf$b;

    iget-object v1, v1, Les/nf$b;->a:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    goto :goto_0

    .line 8
    :cond_0
    monitor-exit p0

    const/4 p1, 0x1

    return p1

    :catchall_0
    move-exception p1

    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_2

    :goto_1
    throw p1

    :goto_2
    goto :goto_1
.end method

.method protected b()Ljava/util/Comparator;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Comparator<",
            "Les/hg;",
            ">;"
        }
    .end annotation

    .line 1
    new-instance v0, Les/nf$a;

    invoke-direct {v0, p0}, Les/nf$a;-><init>(Les/nf;)V

    return-object v0
.end method

.method public b(Ljava/util/List;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    return-void
.end method

.method public c()V
    .locals 0

    return-void
.end method
